﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DispatchAssist.BusinessLogical.Model
{
    public class SMSContact
    {
        /// <summary>
        /// SMSContact 构造函数
        /// </summary>
        public SMSContact()
        { }


        /// <summary>
        /// SMSContact OR映射构造函数
        /// </summary>
        public SMSContact(System.Data.IDataReader dr)
        {
            this.SMSContactID = (Guid)dr["SMSContactID"];
            this.ContactName = Convert.ToString(dr["ContactName"]);
            this.ContactMobile = Convert.ToString(dr["ContactMobile"]);
            this.SMSContactGroupID = (Guid)dr["SMSContactGroupID"];
            this.LastModifyTime = Convert.ToDateTime(dr["LastModifyTime"]);
            this.DeleteFlag = Convert.ToBoolean(dr["DeleteFlag"]);
        }


        /// <summary>
        /// 
        /// </summary>
        public Guid SMSContactID { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string ContactName { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string ContactMobile { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public Guid SMSContactGroupID { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public DateTime LastModifyTime { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public bool DeleteFlag { get; set; }

        public override string ToString()
        {
            return string.Format("[发送对象：{0}]", this.ContactName);
        }

    }
}
